﻿using System;
using EasyHook;

namespace MassPokerTool.Infrastructure.Hooking.Hooks
{
    public abstract class HookBase : IHook
    {
        private LocalHook _localHook; // preventing from GC collection

        public void CreateHook(object callback)
        {
            _localHook = CreateHookInternal(callback);
        }

        protected abstract LocalHook CreateHookInternal(object callback);
    }
}
